cmake_minimum_required(VERSION 2.8)

project(CLDoQuMeasures)

SET(CMAKE_BUILD_TYPE Debug)
SET(CMAKE_CXX_FLAGS_DEBUG "-g")

IF (NOT CMAKE_MODULE_PATH)
  SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules" CACHE PATH "Path for CMake modules")
ENDIF()

SET(DOQUMEASURES_EXTRA_DIRS ${ISE_INCLUDE_DIRS})
SET(DOQUMEASURES_EXTRA_LIBS ${ISE_LIBRARIES})


FILE(
	GLOB_RECURSE
	cpps
	src/*.cpp
)

FILE(
	GLOB_RECURSE
	headers
	src/*.h
)


FIND_PACKAGE(DoQuMeasures REQUIRED)
MESSAGE(${DoQuMeasures_LIBRARY})

FIND_PACKAGE(Boost 1.33 COMPONENTS thread)

SET(CLDoQuMeasures_EXTRA_DIRS ${DoQuMeasures_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
SET(CLDoQuMeasures_EXTRA_LIBS ${DoQuMeasures_LIBRARIES} ${Boost_LIBRARIES})

INCLUDE_DIRECTORIES(${CLDoQuMeasures_EXTRA_DIRS})

ADD_DEFINITIONS(${ISE_DEFINITIONS})


ADD_EXECUTABLE(CLDoQuMeasures ${cpps} ${headers})
TARGET_LINK_LIBRARIES(CLDoQuMeasures ${CLDoQuMeasures_EXTRA_LIBS})
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/CLDoQuMeasures DESTINATION bin)
